package com.chen.usersys.service;

import com.chen.usersys.domain.ResponseCommon;
import com.chen.usersys.domain.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    //登录
    public ResponseCommon login(String name, String pwd, HttpServletRequest request);

    //根据id删除
    public Integer deleteUserById(Integer id);

    //查询
    public List<User> selectAllUser();

    //根据id查询
    public User selectById(Integer id);

    //新增
    public String insertUser(User user);

    //修改
    public Integer updateUser(User user);
}
